@using BlazorApp.Pages.Common.Metadata
<Alert Type="@AlertType.Success">

    @($"{Type} {SelectType} in [{string.Join(",", Namespaces)}]    ")
    @if (TopologyKey != null)
    {
        <Tag>@TopologyKey</Tag>
    }
    @if (Weight > 0)
    {
        <Tag>Weight=@Weight</Tag>
    }
    <KubectlExplainButton Field="@ExplainField"></KubectlExplainButton>
</Alert>

@code {

    [Parameter]
    public IList<string> Namespaces { get; set; }


    [Parameter]
    public int Weight { get; set; }
    [Parameter]
    public string Type { get; set; }

    [Parameter]
    public string SelectType { get; set; }


    [Parameter]
    public string TopologyKey { get; set; }
    [Parameter]
    public string ExplainField { get; set; }

}
